LG-10052 Validate Zip Code on "Enter the information on your state‑issued ID" page#8554
Conversation
There was a problem hiding this comment.
Can we add a regression spec for this?
This seems like a good candidate to extract to a common component (e.g. ZipCodeFieldComponent) to avoid future such inconsistency. Another thing I notice is this field probably doesn't have the Cleave formatting that other zipcode fields have, currently via formatted-fields.ts + the .zipcode class.
Added in f1ccf50 |
I created LG-10056 for this. |
added in 4a57f23 |
…052-validate-zip-on-state-id
…m:18F/identity-idp into gyamada/lg-10052-validate-zip-on-state-id
|
@aduth Thanks for the good suggestions yesterday. A few changes pushed up since you last reviewed. Now that the pipeline is fixed can I get a quick review and a thumbs up before merging? Thanks |
| let(:remote_identity_proofing) { false } | ||
|
|
There was a problem hiding this comment.
Is this used for anything?
| let(:remote_identity_proofing) { false } |
| @@ -0,0 +1,47 @@ | |||
| require 'rails_helper' | |||
| require 'axe-rspec' | |||
There was a problem hiding this comment.
Is this needed?
| require 'axe-rspec' |
| RSpec.describe 'doc auth IPP state ID step', js: true do | ||
| include IdvStepHelper | ||
| include InPersonHelper | ||
| include VerifyStepHelper |
There was a problem hiding this comment.
Is this needed?
| include VerifyStepHelper |
🎫 Ticket
LG-10052 Validate Zip Code on "Enter the information on your state‑issued ID" page
🛠 Summary of changes
📜 Testing Plan
in_person_capture_secondary_id_enabledto true👀 Screenshots
Before:
No validation (length and characters)After:
Has validation + error message
Passes Validation
Fails Validation
For Quick Reference here is a screenshot of app/views/idv/in_person/address.html.erb so you can see attributes for component